image classification using rest api